<!DOCTYPE html>
<!-- fadeplug Demo -->
<!-- Author 改着名儿玩 -->
<html>
<head>
	<meta charset="UTF-8">
	<title>fadeplugs-demo</title>
	<style>
		.dynamic_img{
			position: absolute;
			top:300px;
			left:500px;
		}
		body{
			width:1000px;
			height:700px;
		}
	</style>
	<script src="../fadeplugs.1.0.js"></script>
</head>
<body>
	<!-- data-ax 横向速率基准量 ,data-ay 纵向速率基准量 , data-limit 浮动位移上线 -->
	<img src="a.png" class="dynamic_img" data-ax="-5" data-ay="-5" data-limit="200" >
	<script type="text/javascript">
	window.onload = function(){
		var elements = document.getElementsByClassName("dynamic_img");
		/**
		* 初始化插件
		* @param elements 图像元素数组
		*/
		new FadePlugs(elements);
	}
	</script>
</body>
</html>